package org.example.controller;


import org.example.util.R;
import org.springframework.web.bind.MethodArgumentNotValidException;
import org.springframework.web.bind.annotation.ControllerAdvice;

/**
 * 全局异常封装
 */
@ControllerAdvice
public class ExpController {


    public R methodArgumentNotValidException(MethodArgumentNotValidException e) {

        e.getBindingResult();
        return R.ok();
    }
}
